//
//  DestinationModel.m
//  Journey
//
//  Created by dllo on 16/5/18.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "DestinationModel.h"

@implementation DestinationModel
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
     
}

-(void)setHot_country:(NSMutableArray *)hot_country{
    _hot_country = hot_country;
    NSMutableArray *array = [NSMutableArray array];
    for (NSDictionary *hotDic in _hot_country) {
        hotCountryModel *hotModel = [[hotCountryModel alloc] init];
        [hotModel setValuesForKeysWithDictionary:hotDic];
        [array addObject:hotModel];
    }
    _hot_country = [NSMutableArray arrayWithArray:array];
}

-(void)setCountry:(NSMutableArray *)country{
    _country = country;
    NSMutableArray * countryArr = [NSMutableArray array];
    for (NSDictionary *countryDic in _country) {
        countryModel *count = [[countryModel alloc] init];
        [count setValuesForKeysWithDictionary:countryDic];
        [countryArr addObject:count];
    }
    _country = [NSMutableArray arrayWithArray:countryArr];
}

@end
